export interface SPU {
  id?: number | string
  spuName: string
  description: string
  category3Id: number | string
  tmId: number | string
  spuSaleAttrList: spuSaleAttr[]
  spuImageList: spuImage[]
  spuPosterList: spuImage[]
}

export type SPURecords = SPU[]

// SPU销售属性
export interface spuSaleAttr {
  id?: number
  spuId: number
  baseSaleAttrId: number
  saleAttrName: string
  spuSaleAttrValueList: spuSaleAttrValue[]
  flag?: boolean
  saleIdAndValueId?: string
}

// SPU图片
export interface spuImage {
  id?: number
  spuId?: number
  imgName: string
  imgUrl: string
}

// SPU销售属性值
export interface spuSaleAttrValue {
  id?: number
  spuId: number
  baseSaleAttrId: number
  saleAttrName: string
  saleAttrValueName: string
}

export interface BaseSpuSaleAttr {
  id: number
  name: string
}
